package com.za.wbw.service.shop.impl;

import com.za.wbw.dao.shop.ShopDao;
import com.za.wbw.model.shop.ShopInfo;
import com.za.wbw.service.shop.ShopService;

public class ShopServiceImpl implements ShopService {
	private ShopDao shopDao;
	// 查询店铺信息
	public ShopInfo queryShopInfo(int shopId) throws Exception{
		return getShopDao().queryShopInfo(shopId);
	}
	// 保存店铺信息
	public ShopInfo saveShopInfo(ShopInfo info) throws Exception{
		return getShopDao().saveShopInfo(info);
	}
	// 更新店铺信息
	public void updateShopInfo(ShopInfo info) throws Exception{
		getShopDao().updateShopInfo(info);
	}
	// ----------------------------
	public ShopDao getShopDao() {
		return shopDao;
	}
	public void setShopDao(ShopDao shopDao) {
		this.shopDao = shopDao;
	}
}
